////////////////////////////////////////////////////////////////////////////////
//
//  Pixelami.com
//  Copyright 2011 Original Authors (Alexander Syed et al)
//  All Rights Reserved.
//
//  NOTICE: Pixelami permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package org.pixelami.hercularity.events
{
	import flash.events.ErrorEvent;
	import flash.events.Event;
	
	public class StepErrorEvent extends ErrorEvent
	{
		static public const STEP_ERROR:String = "stepError";
		
		public var errorTarget:Object;
		
		public function StepErrorEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, text:String="")
		{
			super(type, bubbles, cancelable, text);
		}
		
		override public function clone():Event
		{
			trace("cloning "+this);
			var e:StepErrorEvent = new StepErrorEvent(type,bubbles,cancelable,text);
			e.errorTarget = errorTarget;
			return e;
		}
	}
}